package com.example.car.api

import com.example.net.HttpsRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.create
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object CarHiltModel {
    @Provides
    @Singleton
    fun getCarApiServerModel(@HttpsRetrofitAnnotation retrofit: Retrofit):CarApiServer{
        return retrofit.create(CarApiServer::class.java)
    }
}